<template>
  <div class="container" >
    <div class="shopShow">
      <img src="http://file.rzkeji.com/web/loveciy/img/banner.jpg"/>
      <span>开始卡的卡拉卡那是农村科技的房间卡了发动机看穿你咖啡咖啡尽快答复的空间啊</span>
    </div>
    <div class="priceShow">
      <div class="price">
        <span>¥68.00</span>
        <span>¥137.00</span>
      </div>
      <div class="password">
        <span>淘口令</span>
        <span>KDJDWKREWK</span>
        <span>》请复制淘口令《</span>
      </div>
      <div class="activity">
        <div class="activityTitle">优惠活动</div>
        <ul>
          <li>
            <span>限购优惠</span>
            <span>6.18全场61.8包邮肯德基卡的打开的开发大</span>
            <span>2018.06.09-2018.06.18</span>
          </li>
          <li>
            <span>限购优惠</span>
            <span>6.18全场61.8包邮肯德基卡的打开的开发大</span>
            <span>2018.06.09-2018.06.18</span>
          </li>
        </ul>
      </div>
      <div class="show">
        <inda :motto="showImg"></inda>
      </div>
    </div>
    <div class="shopDetails">
      <span class="title">商品详情</span>
      <ul>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/black1.jpg"/>
        </li>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/black1.jpg"/>
        </li>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/black1.jpg"/>
        </li>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/black1.jpg"/>
        </li>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/black1.jpg"/>
        </li>
      </ul>
    </div>


    <img src="http://file.rzkeji.com/web/loveciy/img/footer.jpg" class="footer1"/>
    <div class="footer">
      <ul>
        <li>
          <img src="http://file.rzkeji.com/web/loveciy/img/shareShop.png"/>
          <span>分享</span>
        </li>
        <li>复制淘口令</li>
        <li>立刻定制</li>
      </ul>
    </div>
  </div>
</template>

<script>

import inda from '@/components/swiper'
export default {
  components: {
   inda
  },

  data () {
    return {
       showImg:[
        {
          imgSrc:'http://file.rzkeji.com/web/loveciy/img/black1.jpg',
          content1:"",
          content2:"",
          //设置img的样式，因为在首页的swiper照片的大小不一样，为了套用一个模板所以需要传数据进去
           imgStyle:{
            width:'172.5px',   
            height:'140px'
          }
        },
        {
          imgSrc:'http://file.rzkeji.com/web/loveciy/img/black1.jpg',
          content1:"",
          content2:"",
           imgStyle:{
            width:'172.5px',   
            height:'140px'
          }
        },
        {
          imgSrc:'http://file.rzkeji.com/web/loveciy/img/black1.jpg',
          content1:"",
          content2:"",
           imgStyle:{
            width:'172.5px',   
            height:'140px'
          }
        },
        {
          imgSrc:'http://file.rzkeji.com/web/loveciy/img/black1.jpg',
          content1:"",
          content2:"",
           imgStyle:{
            width:'172.5px',  
            height:'140px'
          }
        },
      ]
    }
  },

  created () {
  
  }
}
</script>

<style>
.container{width: 100%;padding-bottom: 70px;}
.shopShow{width: 100%;height: 375px;position: relative;}
.shopShow img{width: 100%;height: 375px;position: absolute;left: 0;top: 0;}
.shopShow span{width: 355px;height: 40px;background: rgba(0,0,0,0.4);padding:10px;color: #fff;position: absolute;left: 0;bottom: 0;font-size: 16px;line-height: 20px;}
.priceShow{width: 100%;}
.price{width: 100%;height: 30px;margin-top:8px;}
.price span:nth-of-type(1){margin-left: 15px;color: red;}
.price span:nth-of-type(2){margin-left: 10px;color: #7b7b7b;font-size: 14px;text-decoration: line-through;}
.password{width: 100%;display: flex;flex-direction: column;margin-top: 10px;}
.password span:nth-of-type(1){margin-left: 15px;font-size: 15px;}
.password span:nth-of-type(2){width: 345px;height: 35px;border: 1px solid #7b7b7b;text-align: center;line-height: 35px;font-size: 15px;margin-left: 15px;color:#7b7b7b;margin-top: 5px;border-radius: 5px;}
.password span:nth-of-type(3){width: 100%;text-align: center;height: 20px;line-height: 20px;font-size: 16px;color: #7b7b7b;margin-top: 5px;}
.activity{width: 100%;}
.activityTitle{margin-left: 15px;font-size: 15px;}
.activity ul{margin-left: 10px;width: 355px;margin-top:7px;}
.activity ul li{width:100%;height: 45px;margin-top:5px;}
.activity ul li span:nth-of-type(1){width: 60px;height: 25px;text-align: center;line-height: 25px;color: red;border: 1px solid red;border-radius: 6px;display: block;float: left;font-size: 15px;}
.activity ul li span:nth-of-type(2){width: 275px;height: 25px;line-height: 25px;margin-left: 15px;font-size: 14px;overflow: hidden;background: red;display: block;float: left;text-overflow: ellipsis;white-space: nowrap;}
.activity ul li span:nth-of-type(3){width: 275px;height: 20px;line-height: 20px;font-size: 12px;margin-left: 80px;display: block;}
.shopDetails{width: 100%;}
.shopDetails .title{line-height: 25px;font-size: 16px;margin-left: 15px;}
.shopDetails ul{width: 345px;margin-left: 15px;}
.shopDetails li{width: 100%;margin-top:5px;}
.shopDetails li img{width: 100%;}









.footer{width: 100%;height:60px;position: fixed;left: 0;bottom: 0;background: gray}
.footer ul{width: 100%;height: 60px;line-height: 60px;text-align: center;display: flex;justify-content: flex-end;color: #fff;}
.footer ul li:nth-of-type(1){width: 50px;}
.footer ul li:nth-of-type(1) img{width: 40px; height: 40px;display: block;}
.footer ul li:nth-of-type(1) span{width: 40px;height: 20px;display: block;font-size: 14px;line-height: 20px;}
.footer ul li:nth-of-type(2){width: 100px;background: red;margin-right: 5px}
.footer ul li:nth-of-type(3){width: 80px;background: blue}


.footer1{width: 100%;height: 36px;}
</style>
